Syntax and Limitations for Win32 Functions Useful in MAPI Development

The remainder of this appendix lists Win32 functions useful to MAPI developers that have limits, adaptations, or differences when used in the MAPI development environment. Where applicable, these limitations are described. Where there are no limitations specifically defined, only the syntax of a function is included. For detailed descriptions of the Win32 functions, see the Win32 Programmer s Reference.

Three limitations apply to most of the Win32 functions that MAPI implements. Error codes returned from these functions or from GetLastError come from MS-DOS and may not always match the Win32 counterpart. Second, MAPI works only with filenames, and other strings passed to it, in the ANSI character set. Applications that use filenames in the OEM character set must convert them to ANSI before calling MAPI. And third, security attributes are ignored.